﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyPublisher.Framework
{
    public class Content
    {
        public string Name { get; set; }
        public User Owner { get; set; }
        public DateTime CreateDate { get; set; }
        public DateTime LastModifyDate { get; set; }
        public string Description { get; set; }
        public Location Location { get; set; }
        public string Source { get; set; }

        public string Path { get { return Source; } }

        public Content(Location location, string source)
        {
            this.Location = location;
            this.Name = "Content";
            this.Owner = User.Anonymous;
            this.CreateDate = DateTime.Now;
            this.LastModifyDate = DateTime.Now;
            this.Description = "";
            this.Source = source;
        }
    }
}
